﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Meqs.Entity
{
    [Serializable]
    public class Perm
    {
        /// <summary>
        /// 用户类型1：局级管理员2：局级普通用户3：校级管理员4：校级普通用户5：学生
        /// </summary>
        public int UserType = 0;
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UID = 0;
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName = "";
        /// <summary>
        /// 教师姓名
        /// </summary>
        public string UName = "";
        /// <summary>
        /// 
        /// </summary>
        //public string StuName = "";
        /// <summary>
        /// 学区ID，学区ID为0则为教育局用户
        /// </summary>
        public int SchoolAreaId = 0;
        /// <summary>
        /// 学区名称
        /// </summary>
        public string SchoolAreaName = "";
        /// <summary>
        /// 学校编号
        /// </summary>
        public string SchoolMark = "";
        /// <summary>
        /// 学校名称
        /// </summary>
        public string SchoolName = "";

        /// <summary>
        /// 学校数据库用户名
        /// </summary>
        public string DataUserName = "";

        /// <summary>
        /// 与此教师有关系的班级的id列表
        /// </summary>
        public IList<int> OwnClassIDList = new List<int>();

        /////////局级普通用户对应的权限//////////////
        /// <summary>
        /// 局级统考管理
        /// </summary>
        public bool Edu_Exam = false;
        /// <summary>
        /// 局级查看成绩分析报表
        /// </summary>
        public bool Edu_Report = false;

        /////////校级普通用户对应的权限//////////////
        //教师评价系统
        /// <summary>
        /// 评估设置
        /// </summary>
        public bool School_Tech_EvalSet = false;
        /// <summary>
        /// 学生评价管理
        /// </summary>
        public bool School_Tech_StuEval = false;
        /// <summary>
        /// 查看评报表
        /// </summary>
        public bool School_Tech_Report = false;
        /// <summary>
        /// 样表设置
        /// </summary>
        public bool School_Tech_TableSet = false;
        //成绩系统
        /// <summary>
        /// 统考管理
        /// </summary>
        public bool School_Score_EduExam = false;
        /// <summary>
        /// 校考管理
        /// </summary>
        public bool School_Score_SchoolExam = false;
        /// <summary>
        /// 查看成绩报表
        /// </summary>
        public bool School_Score_Report = false;

        // 德育系统
        /// <summary>
        /// 设定评价规则
        /// </summary>
        public bool School_Morality_Role = false;
        /// <summary>
        /// 查看所有报表
        /// </summary>
        public bool School_Morality_Report = false;
        // 学分系统
        /// <summary>
        /// 设定评价规则
        /// </summary>
        public bool School_Credit_Role = false;
        /// <summary>
        /// 查看所有报表
        /// </summary>
        public bool School_Credit_Report = false;
    }
}
